﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;
using Documents.Common.Interfaces;

namespace Documents.web.Models
{

    public enum PatientListType
    { 
        InPatients,
        Discharges
    
    }

    public class PatientListModel
    {
        public XmlDocument Admissions { get; private set; }
        public XmlDocument Discharges { get; private set; }
        public XmlDocument InPatients { get; private set; }
        public string Title { get; private set; }
        public XmlDocument Locations { get; set; }
        public PatientListType ListType { get; private set; }

        public PatientListModel(IPasHelper pasHelper, string wardCode, string title, PatientListType listtype)
        {
            ListType = listtype;
            InPatients = pasHelper.InPatients(wardCode, null, null);
            Discharges = pasHelper.Discharges(wardCode, null, null); 
            Locations = pasHelper.Locations();
            Title = title;
        }
    }
}
